package homework1;

public class InitMatch implements ITournament {
	
	public MatchData data;
	
	public InitMatch( MatchData data ){
		this.data = data;
	}
	
	public boolean allValid(){
		return data.score.isValid();
	}

	public int matchesPlayed( String name ) {
		if( data.team1.equals(name) || data.team2.equals(name) ){
			return 1;
		}
		
		return 0;
	}
}
